package com.service;

import java.io.Serializable;
import java.util.List;

import com.enetiy.Areausable;
import com.enetiy.Binding;

public interface BindingService {
	//添加绑定 
	public Serializable insertBinding(Binding bin) throws Exception;
	//删除绑定
	public void deleteBingding(Binding bin) throws Exception;
	//根据用户id查询用户所有绑定的表
	public List<Binding> selsctBindingUsers(int uid) throws Exception;
	//根据用户id和区域info id查询绑定信息
	public Binding selsctBindingUsers(int usersid,int areainfoid) throws Exception; 
	
	//用户在区域可用绑定
	public List<Binding> selectBindingAvailable(int userid, List<Areausable> areabusable) throws Exception;
	
	//bindingid查
	public Binding selectBinding(int bindingid) throws Exception;

	//账号和区域查询binding
	public Binding selectbinding(String acct,int areaid)throws Exception;
	//用户和区域查询binding
	public Binding selectbinding(int userid,int areaid)throws Exception;
	
	
	public Binding selectBindingAcct(String acct,int areainfo_id)throws Exception;
	public Binding selsctbinding(String acct,int areaid,int userid)throws Exception;
	public Binding selsctbinding(String acct,int areaid,String pwd)throws Exception;
	
	//查询此radius账号的用户的总数
	public int selectRadiusNum(int radius) throws Exception;
	//修改
	public void updateBinding(Binding bin) throws Exception;
}
